#include<iostream>
#include<string>

using namespace std;

int main()
{
	char temp;
	string s;
	while (true)
	{
		cin >> temp;
		if (temp == 'E') break;
		s.push_back(temp);
	}
	int win_point = 0, lose_point = 0;
	for (int i = 0; i < s.size(); i++)
	{
		if (s[i] == 'W') { win_point++; }
		else { lose_point++; }
		if ((win_point >= 11 || lose_point >= 11) && abs(win_point - lose_point) >= 2)
		{
			cout << win_point << ":" << lose_point << endl;
			win_point = lose_point = 0;
		}
	}
	cout << win_point << ":" << lose_point << endl;
	cout << endl;

	win_point = lose_point = 0;
	for (int i = 0; i < s.size(); i++)
	{
		if (s[i] == 'W') { win_point++; }
		else { lose_point++; }
		if ((win_point >= 21 || lose_point >= 21) && abs(win_point - lose_point) >= 2)
		{
			cout << win_point << ":" << lose_point << endl;
			win_point = lose_point = 0;
		}
	}
	cout << win_point << ":" << lose_point;
	return 0;
}